"""
类和实例属性的查找顺序-mro查找
"""


class Company(object):
    name = "Apple"

    def __init__(self, name):
        self.name = name


class D:
    pass


class C(D):
    pass


class B(D):
    pass


class A(B, C):
    pass


if __name__ == '__main__':
    company = Company("Google")
    print(company.name)
    # 输出结果：
    """
    Google
    """

    # 使用C3算法继续mro查找
    print(A.__mro__)
    # 输出结果：
    """
    (<class '__main__.A'>, <class '__main__.B'>, <class '__main__.C'>, <class '__main__.D'>, <class 'object'>)
    """
